<div class="list">
    <table>
        <thead>
            <tr>
                <th><g:message code="marketPriceResearch.region" default="Region" /></th>
                <th><g:message code="marketPriceResearch.market" default="Market" /></th>
                <g:sortableColumn property="date" title="Date" titleKey="marketPriceResearch.date" />
                <g:sortableColumn property="approved" title="Approved" titleKey="marketPriceResearch.approved" />
                <g:sortableColumn property="dateCreated" title="Date Created" titleKey="marketPriceResearch.dateCreated" />
                <g:sortableColumn property="lastUpdated" title="Last Updated" titleKey="marketPriceResearch.lastUpdated" />
            </tr>
        </thead>
        <tbody>
        <g:each in="${marketPriceResearchInstanceList}" status="i" var="marketPriceResearchInstance">
            <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                <td><g:link action="show" id="${marketPriceResearchInstance.id}">${fieldValue(bean: marketPriceResearchInstance, field: "region")}</g:link></td>
                <td><g:link action="show" id="${marketPriceResearchInstance.id}">${fieldValue(bean: marketPriceResearchInstance, field: "market")}</g:link></td>
                <td><g:link action="show" id="${marketPriceResearchInstance.id}"><g:formatDate date="${marketPriceResearchInstance.date}" format="yyyy-MM-dd" /></g:link></td>
                <td><g:link action="show" id="${marketPriceResearchInstance.id}"><g:formatBoolean boolean="${marketPriceResearchInstance.approved}" /></g:link></td>
                <td><g:link action="show" id="${marketPriceResearchInstance.id}"><g:formatDate date="${marketPriceResearchInstance.dateCreated}" format="yyyy-MM-dd HH:mm:ss"/></g:link></td>
                <td><g:link action="show" id="${marketPriceResearchInstance.id}"><g:formatDate date="${marketPriceResearchInstance.lastUpdated}" format="yyyy-MM-dd HH:mm:ss"/></g:link></td>
            </tr>
        </g:each>
        </tbody>
    </table>
</div>
